package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.vo.countByTimeVo;
import com.zzyl.serve.domain.NursingProject;

import java.util.List;

public interface MemberReservationService extends IService<Reservation> {
    /**
     * 查询取消预约数量
     *
     * @return
     */
    int getCancelledReservationCount();

    /**
     * 查询指定时间段预约数量
     *
     * @return
     */
    List<countByTimeVo> getCountByTime();

    /**
     * 添加预约
     *
     * @param reservation
     * @return
     */
    boolean addReservation(Reservation reservation);

    /**
     * 分页查询预约
     *
     * @param status
     * @return
     */
    List<Reservation> getReservationPage(Integer status);

    /**
     * 取消预约
     *
     * @param id
     * @return
     */
    boolean cancelReservationById(Long id);

    /**
     * 定时更新预约状态
     */
    void updateReservationStatus();
}
